package com.damenggroup.base.callback.databind

import androidx.databinding.ObservableField

/**
 * Customized ObservableField in which the value is Float.it provides default value
 * to avoid determining whether its value is null when accessing its value
 */
class FloatObservableField(value: Float = 0f) : ObservableField<Float>(value) {

    override fun get(): Float {
        return super.get()!!
    }

}